﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 9/2/2009
 * Time: 11:13 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Generic;

namespace Buaya.Gui
{
	/// <summary>
	/// Description of WebBrowserForm.
	/// </summary>
	public partial class WebBrowserForm : Form
	{
		public WebBrowserForm(string url)
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			Navigate(url);
			toolStripButton1.Click += delegate { webBrowser1.GoBack(); };
			toolStripButton2.Click += delegate { webBrowser1.GoForward(); };
			toolStripButton3.Click += delegate { webBrowser1.Stop(); };
			toolStripButton4.Click += delegate { webBrowser1.Refresh(); };
		}
		
		public void Navigate(string url)
		{
			webBrowser1.Navigate(url);
		}
	}
}
